package model

import (
	"time"
)

type AuPurchaseOrder struct {
	Id              int       `xorm:"not null pk autoincr INT(10)"`
	PurchaseOrderNu string    `xorm:"not null unique VARCHAR(255)"`
	OrderId         int       `xorm:"index INT(10)"`
	OrderNo         string    `xorm:"not null index VARCHAR(20)"`
	CarId           string    `xorm:"not null index VARCHAR(20)"`
	Sid             int       `xorm:"not null default 0 index INT(11)"`
	Amount          float64   `xorm:"not null DOUBLE(10,2)"`
	Type            int       `xorm:"not null default 1 TINYINT(1)"`
	Status          int       `xorm:"not null default 0 TINYINT(1)"`
	IsLock          int       `xorm:"not null default 0 TINYINT(1)"`
	PayStatus       int       `xorm:"not null default 1 TINYINT(1)"`
	EmpId           int       `xorm:"not null INT(10)"`
	Createtime      time.Time `xorm:"not null index DATETIME"`
	ModifyTime      time.Time `xorm:"not null DATETIME"`
}
